<layout name="layout"/>

<p>
<a href="__CONTROLLER__/add" class="uk-button uk-button-success" >
{$Think.lang.add_new}
</a>
<a href="__MODULE__/Newstype/index" class="uk-button" >
{$Think.lang.news_type_list}
</a>
<button type="button" onclick="bulkdel('__CONTROLLER__/batchDelete')" class="uk-button uk-button-default">{$Think.lang.batch_delete}</button>
</p>
<form class="uk-form">
    <div class="uk-grid">
		<div class="uk-width-1-4">#:<input type="text" name="news_id" placeholder="" class="uk-width-1-1"></div>
        <div class="uk-width-1-4">新闻标题:<input type="text" name="news_title" placeholder="" class="uk-width-1-1"></div>
	    <div class="uk-width-1-4">新闻类型:
		<select name="news_type">
		<option value="">--</option>
		<volist name=":getObjectList('newstype')" id="vo">
		<option value="{$vo.np_name}">{$vo.np_name}</option>
		</volist>
		</select>
		</div>
        <div class="uk-width-1-4">状态:<select name="news_status">
		<option value="">--</option>
		<option value="1">可见</option>
		<option value="0">不可见</option>					
		</select>
		</div>
    </div>
	<p>
<button type="submit" class="uk-button uk-button-danger">搜索</button>
</p>
</form>
          <div class="uk-overflow-container">
            <table class="uk-table uk-table-hover uk-table-striped uk-table-condensed">
	<thead>
	<th><input id="checkall" type="checkbox" /></th>
		<th>#</th>		<th>{$Think.lang.news_title}</th>		<th>{$Think.lang.news_type}</th>		
		<th>{$Think.lang.sort}</th>	<th>{$Think.lang.status}</th>	<th>{$Think.lang.add_time}</th>	<th>{$Think.lang.update_time}</th>
		<th>{$Think.lang.lang}</th>
				<th>--</th>
	</thead>
	<tbody>
		<volist name="list" id="vo">
		<tr>
		<td><input name="check_child" value="{$vo.news_id}" type="checkbox" /></td>
			<td><a href="__CONTROLLER__/details/{$vo.news_id}">{$vo.news_id}</a></td><td>{$vo.news_title|cut_str="20"}</td>
			<td>{$vo.news_type}</td><td>{$vo.news_sort}</td><td>{$vo.news_status|displayIcon}</td>
			<td>{$vo.news_time}</td>
			<td>{$vo.news_update_time}</td>
			<td>{$vo.news_lang}</td>
			<td>
				<a href="javascript:void(0)" onclick="confirmDelete('__CONTROLLER__/deleteHandle/{$vo.news_id}')">
					<i class="uk-icon-trash"></i>
				</a>
			</td>
		</tr>
		</volist>
	</tbody>
</table>
</div>
{$page}